<template>
  <div class="check-button">
    <!-- 选中 -->
    <div v-show="isChecked">
      <img src="~assets/images/cart/select-active.svg" alt="" />
    </div>

    <!-- 不选中 -->
    <div v-show="!isChecked">
      <img src="~assets/images/cart/unselected.svg" alt="" />
    </div>
  </div>
</template>

<script>
export default {
  name: 'CheckButton',
  props: {
    isChecked: {
      type: Boolean,
      default: true
    }
  },
  components: {},
  data () {
    return {}
  },
  created () {},
  watch: {}
}
</script>

<style lang="less" scoped>
.check-button {
  width: 25px;
  height: 25px;
  border-radius: 50%;

  img {
    width: 100%;
  }
}
</style>
